d1: enable crypto offload engine
Enable the sun8i_ce engine that's included on the D1 SoC, along
with the respective hash/prng/trng options. The sun8i_ce driver
also requires PM and PPU to be enabled.
[ 1.368345] sun8i-ce
3040000.crypto: Set mod clock to
300000000 (300 Mhz) from
400000000 (400 Mhz)
[ 1.378592] sun8i-ce
3040000.crypto: will run requests pump with realtime priority
[ 1.386894] sun8i-ce
3040000.crypto: will run requests pump with realtime priority
[ 1.395114] sun8i-ce
3040000.crypto: will run requests pump with realtime priority
[ 1.403197] sun8i-ce
3040000.crypto: will run requests pump with realtime priority
[ 1.411110] sun8i-ce
3040000.crypto: Register cbc(aes)
[ 1.416235] sun8i-ce
3040000.crypto: Register ecb(aes)
[ 1.421347] sun8i-ce
3040000.crypto: Register cbc(des3_ede)
[ 1.426898] sun8i-ce
3040000.cryxto: Register ecb(des3_ede)
[ 1.432366] sun8i-ce
3040000.crypto: Register md5
[ 1.437112] sun8i-ce
3040000.crypto: Register sha1
[ 1.441816] sun8i-ce
3040000.crypto: Register sha224
[ 1.446821] sun8i-ce
3040000.crypto: Register sha256
[ 1.451697] sun8i-ce
3040000.crypto: Register sha384
[ 1.456733] sun8i-ce
3040000.crypto: Register sha512
[ 1.461673] sun8i-ce
3040000.crypto: Register stdrng
[ 1.467096] sun8i-ce
3040000.crypto: CryptoEngine Die ID 0
root@OpenWrt:~# cat /proc/crypto |grep sun8i
driver : sun8i-ce-prng
driver : sha512-sun8i-ce
driver : sha384-sun8i-ce
driver : sha256-sun8i-ce
driver : sha224-sun8i-ce
driver : sha1-sun8i-ce
driver : md5-sun8i-ce
driver : ecb-des3-sun8i-ce
driver : cbc-des3-sun8i-ce
driver : ecb-aes-sun8i-ce
driver : cbc-aes-sun8i-ce
Signed-off-by: Zoltan HERPAI <[email protected]>